package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.DailyPaper;
import cn.wolfcode.trip.base.query.DailyPaperQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DailyPaperMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DailyPaper entity);

    DailyPaper selectByPrimaryKey(Long id);

    List<DailyPaper> selectAll();

    int updateByPrimaryKey(DailyPaper entity);

    List<DailyPaper> selectForList(DailyPaperQueryObject qo);

    List<Long> getCollect(Long uId);

    void addLike(@Param("userId") Long userId, @Param("likeId") Long likeId);

    void addCollect(@Param("userId") Long userId, @Param("collectId") Long collectId);

    List<Long> getlike(Long uId);

    void deleteLike(@Param("uId") Long uId, @Param("likeId") Long likeId);

    void deleteCollect(@Param("uId") Long uId, @Param("collectId") Long collectId);

    List<DailyPaper> queryByUserId(DailyPaperQueryObject qo);

    int selectNumByKeyword(DailyPaperQueryObject qo);
}